package com.google.www;

import java.util.Scanner;

public class Task01 {
    public static void main(String[] args) {
        System.out.println("输入圆柱半径和高");
        Scanner in = new Scanner(System.in);
        Cylinder cylinder = new Cylinder(in.nextDouble(), in.nextDouble());
        System.out.printf("Area = %.2f\n", cylinder.getArea());
        System.out.printf("volume = %.2f\n", cylinder.getVolume());
    }
}
